package com.example.springboot09.danlimoshi;

/**
 * @ClassName Hungry
 * @Description TODO
 * @Author tianqinglong
 * @Date 15:19 2022/7/25
 * @Version 1.0
 **/
//饿汉式
public class Hungry {
    public static void main(String[] args) {
     //   getInstance();
    }
    private Hungry(){
        System.out.println("构造出了");
    }
    public static  Hungry hungry=new Hungry();

    public static Hungry getInstance(){
        return hungry;
    }
}
